<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta charset="utf-8">
<title>模块表</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
 <link rel="stylesheet" href="../../res/css/layui.css"  media="all">
<link rel="stylesheet" href="../../res/css/cst/snproduction.css" media="all">
 <script type="text/javascript" src="../../res/js/jquery-1.11.2.min.js"></script>
</head>
  <style type="text/css">
        .downpanel .layui-select-title span {
            line-height: 38px;
        }
 
        /*继承父类颜色*/
        .downpanel dl dd:hover {
            background-color: inherit;
        }
    </style>
    <style type="text/css">
        body {
            height: 100%;
            width: 100%;
            background-size: cover;
            margin: 0 auto;
        }
        td {
            font-size: 12px !important;
        }
 
        .layui-form-checkbox span {
       		width:180px;
            height: 30px;
        }
        .layui-field-title {
            border-top: 1px solid white;
        }
        table {
            width: 100% !important;
        }
 
    </style>

<body>

 <div class="demoTable" style="margin-left:20px;margin-top: 10px;">
	 模块名称:
	<div class="layui-inline">
		<input class="layui-input" style="height: 32px;" id="mName" placeholder="根据模块名称查询" autocomplete="off">
	</div>
  <button class="layui-btn layui-btn-sm" data-type="reload" id="selectButton">搜索</button>
  <button class="layui-btn layui-btn-warm layui-btn-sm" id="insert">增加</button>
</div>
 
<table class="layui-hide" id="LAY_table_user" lay-filter="user"></table> 
<table class="layui-table" lay-data="{ url:'../../module/queryAll.action', page:true, id:'idTest'}" lay-filter="demo">
  <thead>
    <tr>
      <th lay-data="{type:'checkbox', fixed: 'left'}"></th>
      <th lay-data="{field:'moNames',align:'center'}">上级模块</th>
      <th lay-data="{field:'moName', align:'center',}">模块名称</th>
      <th lay-data="{field:'moExplain', align:'center'}">模块说明</th>
      <th lay-data="{field:'moSite', align:'center'}">模块地址</th>
      <th lay-data="{fixed: 'right', align:'center', toolbar: '#barDemo'}">操作</th>
    </tr>
  </thead>
</table>

<script type="text/javascript" id="isvaTpl">
	 {{# if(d.isva == 0) { }}
     <div>无效</div>
 	 {{# } else if(d.isva == 1){ }}
    <div>有效</div>
	 {{# }}}

</script>
<script type="text/html" id="barDemo">
  <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
  <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
</script>

<!-- 增加或修改的弹框 -->
	<div id="addOrUpdate" style="display: none;">
		<form id="myform" class="layui-form" method="post"
			action=""
			style="margin-top: 10px;">
			<input type="hidden" name="moId" id="moId" />
			<input type="hidden" name="snMoId" id="snMoIds" value="0"/>
			<div class="aru">
				<label class="layui-form-label">上级模块:</label>
		        <div class="layui-input-inline">
		            <div class="layui-unselect layui-form-select downpanel">
		                <div class="layui-select-title">
		                    <span class="layui-input layui-unselect" id="treeclass">不选为根模块</span>
		                    <input type="hidden"  name="selectID" >
		                    <i class="layui-edge"></i>
		                </div>
		                <dl class="layui-anim layui-anim-upbit">
		                    <dd>
		                        <ul id="classtree"></ul>
		                    </dd>
		                </dl>
		            </div>
		        </div>
			</div>
			
			<div class="aru">
				<label class="layui-form-label">模块名称:</label>
				<div class="layui-input-block">
					<input name="moName" id="moName" onblur="findMoName()" class="layui-input" type="text" placeholder="模块名称">
					<input type="hidden"  class="fromYz" id="moNameYz">
				</div>
			</div>
			

			<div class="aru">
				<label class="layui-form-label">模块说明:</label>
				<div class="layui-input-block">
					<input name="moExplain" id="moExplain" onblur="findMoExplain()" class="layui-input" type="text" placeholder="模块说明">
					<input type="hidden"  class="fromYz" id="moExplainYz">
				</div>
			</div>
			
			<div class="aru">
				<label class="layui-form-label">URL地址:</label>
				<div class="layui-input-block">
					<input name="moSite" id="moSite" onblur="findMoSite()" class="layui-input" type="text" placeholder="模块地址">
					<input type="hidden"  class="fromYz" id="moSiteYz">
				</div>
			</div>
			
			<div class="aru">
				<div class="layui-input-block">
					<input type="button"  class="layui-btn" id="sub" value="确认提交" /> 
					<a href="javascript:exit();" class="layui-btn layui-btn-danger">关闭</a>
				</div>
			</div>
		</form>
	</div>
<script src="../../res/layui.all.js" charset="utf-8"></script>
<script type="text/javascript" src="../../res/js/cx/snModule.js"></script>
</body>
</html>